package com.yin.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
*@author LSY
*Time: 2018年12月27日下午2:16:03
*
*
*/
@Configuration
public class MVCConfiguration implements WebMvcConfigurer{

	@Override
	public void addViewControllers(ViewControllerRegistry registry) {
		registry.addViewController("/login").setViewName("login");;
    	registry.addViewController("/main").setViewName("main");
	}
	
}
